import request from '@/utils/axios-config'

// 商品评论相关API
export function getCommentList() {
  return request({
    url: '/admin/goodsComment/list',
    method: 'get'
  })
}

export function getCommentPage(params) {
  return request({
    url: '/admin/goodsComment/page',
    method: 'get',
    params
  })
}

export function getCommentDetail(id) {
  return request({
    url: `/admin/goodsComment/detail/${id}`,
    method: 'get'
  })
}

export function saveOrUpdateComment(data) {
  return request({
    url: '/admin/goodsComment/saveOrUpdate',
    method: 'post',
    data
  })
}

export function deleteComment(id) {
  return request({
    url: `/admin/goodsComment/deleteById/${id}`,
    method: 'delete'
  })
} 